//
//  HMNavigationController.m
//  G05爱鲜蜂
//
//  Created by 源 何 on 16/10/14.
//  Copyright © 2016年 何源. All rights reserved.
//

#import "HMNavigationController.h"

@interface HMNavigationController ()

@end

@implementation HMNavigationController

//- (void)loadView{
//    // 获取当前的版本号
//    NSString *currentVersion = [NSBundle mainBundle].infoDictionary[@"CFBundleShortVersionString"];
//    
//    // 获取旧版本号
//    NSString *oldVersion = [[NSUserDefaults standardUserDefaults] objectForKey:kVersion];
//    
//    // 做判断
//    if ([oldVersion isEqualToString:currentVersion]) {
//        // 相等, 显示 tabBar
//        
//        [self ads];
//        
//    } else {
//        
////        // 显示完一次欢迎界面之后, 应该保存当前的版本号
////        [[NSUserDefaults standardUserDefaults] setObject:currentVersion forKey:kVersion];
////        
////        [[NSUserDefaults standardUserDefaults] synchronize];
//        [super loadView];
//    }
//}

#pragma mark
#pragma mark -- 程序启动广告
//- (void)ads{
//    
//    NSMutableDictionary *param = [NSMutableDictionary dictionary];
//    
//    [param setValue:@"7" forKey:@"call"];
//    
//    [DSHTTPClient postUrlString:@"ad.json.php" withParam:param withSuccessBlock:^(id data) {
//        NSDictionary *dict = data[@"data"];
//        NSURL *imgUrl = dict[@"img_big_name"];
//        
//        UIImageView *adImageView = [[UIImageView alloc] initWithFrame:[UIScreen mainScreen].bounds];
//        [adImageView sd_setImageWithURL:imgUrl];
//        
//        [self.view addSubview:adImageView];
//        
//        [UIView animateWithDuration:2.0 animations:^{
//            adImageView.transform = CGAffineTransformMakeScale(1.2, 1.2);
//            adImageView.alpha = 0;
//        } completion:^(BOOL finished) {
////            [adImageView removeFromSuperview];
//            [super loadView];
//        }];
//        
//    } withFailedBlock:^(NSError *error) {
//        NSLog(@"%@",error);
//    } withErrorBlock:^(NSString *message) {
//        NSLog(@"%@",message);
//    }];
//}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
//    UINavigationBar *naviBar = [UINavigationBar appearance];
//    
//    [naviBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
//    
//    [naviBar setShadowImage:[UIImage new]];
    
}



@end
